/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 * <p>
 * https://www.renren.io
 * <p>
 * 版权所有，侵权必究！
 */

package net.qunzhi.modules.job.task;

import net.qunzhi.modules.cms.service.TbEquipmentService;
import net.qunzhi.modules.job.utils.SampleTriggerListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 定时获取调度中心的压力流量
 */
@Component("pressureFlowTask")
public class PressureFlowTask implements ITask {
    private Logger logger = LoggerFactory.getLogger(getClass());
    @Autowired private TbEquipmentService equipmentService;

    @Override
    public void run(String params) {
        logger.debug("pressureFlowTask定时任务正在执行，参数为：{}", params);
        equipmentService.getPressureFlowTask();
    }
}
